var e = require("../../../uv-ui-tools/libs/mixin/mpMixin.js"), i = require("../../../uv-ui-tools/libs/mixin/mixin.js"), l = require("./props.js"), t = require("../../../../common/vendor.js");

require("../../../uv-ui-tools/libs/function/index.js"), require("../../../uv-ui-tools/libs/function/test.js"), 
require("../../../uv-ui-tools/libs/function/digit.js"), require("../../../uv-ui-tools/libs/util/route.js"), 
require("../../../uv-ui-tools/libs/function/debounce.js"), require("../../../uv-ui-tools/libs/function/throttle.js");

var n = {
    name: "uv-cell",
    emits: [ "click" ],
    mixins: [ e.mpMixin, i.mixin, l.props ],
    computed: {
        titleTextStyle: function() {
            return this.$uv.addStyle(this.titleStyle);
        }
    },
    methods: {
        clickHandler: function(e) {
            this.disabled || (this.$emit("click", {
                name: this.name
            }), this.openPage(), this.stop && this.preventEvent(e));
        }
    }
};

Array || (t.resolveComponent("uv-icon") + t.resolveComponent("uv-line"))(), Math || (function() {
    return "../../../uv-icon/components/uv-icon/uv-icon.js";
} + function() {
    return "../../../uv-line/components/uv-line/uv-line.js";
})();

var s = t._export_sfc(n, [ [ "render", function(e, i, l, n, s, o) {
    return t.e({
        a: e.icon
    }, e.icon ? {
        b: t.p({
            name: e.icon,
            "custom-style": e.iconStyle,
            size: "large" === e.size ? 22 : 18
        })
    } : {}, {
        c: e.title
    }, e.title ? {
        d: t.t(e.title),
        e: t.s(o.titleTextStyle),
        f: t.n(e.disabled && "uv-cell--disabled"),
        g: t.n("large" === e.size && "uv-cell__title-text--large")
    } : {}, {
        h: e.label
    }, e.label ? {
        i: t.t(e.label),
        j: t.n(e.disabled && "uv-cell--disabled"),
        k: t.n("large" === e.size && "uv-cell__label--large")
    } : {}, {
        l: !e.$uv.test.empty(e.value)
    }, e.$uv.test.empty(e.value) ? {} : {
        m: t.t(e.value),
        n: t.n(e.disabled && "uv-cell--disabled"),
        o: t.n("large" === e.size && "uv-cell__value--large")
    }, {
        p: e.isLink
    }, e.isLink ? {
        q: t.p({
            name: e.rightIcon,
            "custom-style": e.rightIconStyle,
            color: e.disabled ? "#c8c9cc" : "info",
            size: "large" === e.size ? 18 : 16
        })
    } : {}, {
        r: t.n("uv-cell__right-icon-wrap--".concat(e.arrowDirection)),
        s: t.n(e.center && "uv-cell--center"),
        t: t.n("large" === e.size && "uv-cell__body--large"),
        v: t.s(e.cellStyle),
        w: e.border
    }, (e.border, {}), {
        x: t.n(e.customClass),
        y: t.s(e.$uv.addStyle(e.customStyle)),
        z: e.disabled || !e.clickable && !e.isLink ? "" : "uv-cell--clickable",
        A: t.o(function() {
            return o.clickHandler && o.clickHandler.apply(o, arguments);
        })
    });
} ], [ "__scopeId", "data-v-056db8f8" ] ]);

wx.createComponent(s);